package com.pojo;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

@Entity
public class Programme implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 5490074306458808470L;
	private int programmeId;
	private String programmeName;
	private String description;
	private String isActive;
	private Contact contact;

	public Programme() {

	}

	public Programme(int programmeId, String programmeName, String description,
			String isActive, Contact contact) {
		super();
		this.programmeId = programmeId;
		this.programmeName = programmeName;
		this.description = description;
		this.isActive = isActive;
		this.contact = contact;
	}

	@Id
	@GeneratedValue
	public int getProgrammeId() {
		return programmeId;
	}

	public void setProgrammeId(int programmeId) {
		this.programmeId = programmeId;
	}

	public String getProgrammeName() {
		return programmeName;
	}

	public void setProgrammeName(String programmeName) {
		this.programmeName = programmeName;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getIsActive() {
		return isActive;
	}

	public void setIsActive(String isActive) {
		this.isActive = isActive;
	}

	@ManyToOne
	@JoinColumn(name = "contactId")
	public Contact getContact() {
		return contact;
	}

	public void setContact(Contact contact) {
		this.contact = contact;
	}

}
